﻿using System;
using Service;

namespace TController
{
    class Program
    {
        static void Main(string[] args)
        {
            MessageQueue messageQueue = new MessageQueue("106.55.163.36",5672,"admin","qq1226550632");
            messageQueue.CreateQueue("HelloRabbitMQ");
            messageQueue.SendMessage("HelloRabbitMQ", "FuckOff2");
            messageQueue.Execute();
            Console.WriteLine($"已发送");
        }
    }
}
